﻿using System;

namespace _扩展方式写法和使用
{
    class Program
    {
        static void Main(string[] args)
        {
            object o = 1;
            string s = "123";
            Console.WriteLine(o.ToInt32());
            Console.WriteLine(s.ToInt32());
            Console.ReadKey();
        }
    }
}
